home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'ItemEdit.pas' rev: 3.00
-
- #ifndef ItemEditHPP
- #define ItemEditHPP
- #include <LibHelp.hpp>
- #include <ComCtrls.hpp>
- #include <StdCtrls.hpp>
- #include <Dialogs.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Itemedit
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TItemInfo;
- class PASCALIMPLEMENTATION TItemInfo : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- Classes::TStringList* FSubItems;
- System::AnsiString FCaption;
- int FImageIndex;
- int FStateIndex;
-
- public:
- __fastcall TItemInfo(Comctrls::TListItem* Item);
- __fastcall virtual ~TItemInfo(void);
- };
-
- class DELPHICLASS TListViewItems;
- class PASCALIMPLEMENTATION TListViewItems : public Forms::TForm
- {
- typedef Forms::TForm inherited;
-
- __published:
- Stdctrls::TGroupBox* GroupBox1;
- Stdctrls::TGroupBox* PropGroupBox;
- Stdctrls::TButton* New;
- Stdctrls::TButton* Delete;
- Stdctrls::TLabel* Label1;
- Stdctrls::TLabel* Label2;
- Stdctrls::TLabel* Label3;
- Comctrls::TTreeView* TreeView;
- Stdctrls::TButton* NewSub;
- Stdctrls::TEdit* Text;
- Stdctrls::TEdit* Image;
- Stdctrls::TEdit* StateImage;
- Stdctrls::TButton* Button4;
- Stdctrls::TButton* Cancel;
- Stdctrls::TButton* Apply;
- Stdctrls::TButton* Button7;
- void __fastcall NewClick(System::TObject* Sender);
- void __fastcall NewSubClick(System::TObject* Sender);
- void __fastcall DeleteClick(System::TObject* Sender);
- void __fastcall ValueChange(System::TObject* Sender);
- void __fastcall TextExit(System::TObject* Sender);
- void __fastcall ImageExit(System::TObject* Sender);
- void __fastcall StateImageExit(System::TObject* Sender);
- void __fastcall FormCreate(System::TObject* Sender);
- void __fastcall ApplyClick(System::TObject* Sender);
- void __fastcall TreeViewChange(System::TObject* Sender, Comctrls::TTreeNode* Node);
- void __fastcall TreeViewChanging(System::TObject* Sender, Comctrls::TTreeNode* Node, bool &AllowChange
- );
- void __fastcall TreeViewDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
- State, bool &Accept);
- void __fastcall TreeViewDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
- void __fastcall TreeViewEdited(System::TObject* Sender, Comctrls::TTreeNode* Node, System::AnsiString
- &S);
- void __fastcall Button7Click(System::TObject* Sender);
- void __fastcall TreeViewKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
- void __fastcall TreeViewEditing(System::TObject* Sender, Comctrls::TTreeNode* Node, bool &AllowEdit
- );
-
- private:
- Comctrls::TListItems* FItems;
- bool FDropping;
- void __fastcall FlushControls(void);
- void __fastcall GetItem(TItemInfo* ItemInfo, Comctrls::TListItem* Value);
- void __fastcall SetItem(TItemInfo* Value);
- void __fastcall SetStates(void);
- void __fastcall SetSubItem(const System::AnsiString S);
- MESSAGE void __fastcall UMTreeEdit(Messages::TMessage &M);
-
- public:
- __property Comctrls::TListItems* Items = {read=FItems};
- public:
- /* TCustomForm.Create */ __fastcall virtual TListViewItems(Classes::TComponent* AOwner) : Forms::TForm(
- AOwner) { }
- /* TCustomForm.CreateNew */ __fastcall TListViewItems(Classes::TComponent* AOwner, int Dummy) : Forms::
- TForm(AOwner, Dummy) { }
- /* TCustomForm.Destroy */ __fastcall virtual ~TListViewItems(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TListViewItems(HWND ParentWindow) : Forms::TForm(ParentWindow
- ) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define UM_TREEEDIT (Word)(1024)
- extern PACKAGE bool __fastcall EditListViewItems(Comctrls::TListItems* AItems);
-
- } /* namespace Itemedit */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Itemedit;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // ItemEdit
-